// JavaScript Document

jQuery(document).ready(function(){
	//chi hien thong tin tren dialog
	jQuery("#myDialog").dialog({
		   bgiframe: true,
		   autoOpen: false,
		   height: 'auto',
		   width: 'auto',
		   title:'Thông tin tên miền tiếng việt',
		   modal: true,
		   resizable:false
	});

	//su dung submit form
	jQuery("#submitDialog").dialog({
	   bgiframe: true,
	   autoOpen: false,
       width:'auto',
        height:'auto',
	   modal: true,
       resizable:false,
	   buttons: {
		  'Save': function(){ 
			jQuery("#form").submit(); 
			return false;
		  },
		  Cancel: function(){ 
			jQuery(this).dialog('close'); 
		  }
	   }
	});
    $("#todate").datepicker();
    $("#fromdate").datepicker();
});